OnlineAccountProxy

This interface serves as an abstraction for the information associated with a local account.

Properties

Link copied to clipboard
abstract val account: Account?

Returns the actual account. No more of this proxy business.

Link copied to clipboard

Returns the OnlineAccountInfo associated with the account to download. If an account is associated with multiple connections then this might help disambiguate which one should be downloaded

Link copied to clipboard
abstract val accountKey: String?

Return a unique (within the context of the OnlineService) identifier for this account.

Link copied to clipboard
abstract val accountMsgType: Int

Return the message type that should be used for messages about this account. This should be one of OnlineService.MESSAGE_TYPE_BANK, MESSAGE_TYPE_INVESTMENT or MESSAGE_TYPE_CREDITCARD.

Link copied to clipboard
abstract val currency: CurrencyType?

Return the list of downloaded transactions that is associated with this account.

Link copied to clipboard

Return the list of downloaded transactions that is associated with this account.

Link copied to clipboard
abstract val isCreditCard: Boolean

Return true if this account is a credit card account

Link copied to clipboard
abstract val isInvestment: Boolean

Return true if this account is an investment account

Link copied to clipboard
abstract val OFXAccountKey: String?
Link copied to clipboard
abstract val OFXAccountNumber: String?
Link copied to clipboard
abstract val OFXAccountType: String?
Link copied to clipboard
abstract val OFXBranchID: String?
Link copied to clipboard
abstract val OFXBrokerID: String?
Link copied to clipboard
abstract val OFXRoutingNumber: String?

Return the routing number for the account

Link copied to clipboard
abstract val payees: OnlinePayeeList
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun getDownloadStartDate(connectionID: String?): Date?

Get the date of the last transaction download.

abstract fun getDownloadStartDate(dateShiftFromLastDownload: Int, connectionID: String?, fallbackConnectionID: String? = "ofx_last_txn_update"): Date?

Get the date of the last transaction download, shifting it by the given number of days since the last download, if any. If link is non-null then this will get the starting date for the account that is specific to the given connection ID. For example, the connectionID can be used to differentiate between a bank account and a connection to paypal, or between a bank interface and investment interface for the same account.

Link copied to clipboard
abstract fun setOFXLastTxnUpdate(updateDate: Long, connectionID: String?)

abstract fun setOFXLastTxnUpdate(updateDate: Long, connectionID: String?, fallbackConnectionID: String?)

Store the date of the last transaction download.

Link copied to clipboard
abstract fun setOnlineAvailBalance(amount: Long, date: Long)

Sets the available online balance of the account to the amount reported by the online service.

Link copied to clipboard
abstract fun setOnlineLedgerBalance(amount: Long, date: Long)

Sets the 'online' balance of the account to the amount reported by the online service.